import request from '@/utils/request'

// 查询单局详情列表
export function listRecord(query) {
  return request({
    url: '/group/boutRecord/listPage',
    method: 'post',
    data: query
  })
}
export function searchTeamStat(data) {
  return request({
    url: '/group/boutRecord/teamStat',
    method: 'post',
    data,
    headers: {
      isToken: true
    }
  });
}
export function teamStatImport(data) {
  return request({
    url: '/group/boutRecord/teamStatImport',
    method: 'post',
    data,
    headers: {
      isToken: true
    }
  });
}
export function txtByImport(data) {
  return request({
    url: '/group/boutRecord/txtByImport',
    method: 'post',
    data,
    headers: {
      isToken: true
    }
  });
}

// 查询单局详情详细
export function getRecord(data) {
  return request({
    url: '/group/boutRecord/findDetail',
    method: 'post',
    data: data
  })
}

// 新增单局详情
export function addRecord(data) {
  return request({
    url: '/group/boutRecord/add',
    method: 'post',
    data: data
  })
}

// 修改单局详情
export function updateRecord(data) {
  return request({
    url: '/group/boutRecord/update',
    method: 'post',
    data: data
  })
}

// 删除单局详情
export function delRecord(data) {
  return request({
    url: '/group/boutRecord/deletes',
    method: 'post',
    data: data
  })
}
